package cn.sdormitory.utils.wx;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.Map;

/**
 * 发送订阅消息参数整合
 *
 * @author Administrator
 */
public class AppletParamUtil {

    /**
     * 待审核通知参数
     * @param name1Value
     * @param time12Value
     * @param time13Value
     * @param thing2Value
     * @param thing3Value
     * @return
     */
    public static Map<String, Object> getNeedConfirmParam (String name1Value,
                                                           String time12Value,
                                                           String time13Value,
                                                           String thing2Value,
                                                           String thing3Value) {

        Map<String, Object> objMap = new HashMap<>(5);
        Map<String, String> map = new HashMap<>(1);
        // 申请人
        map.put("value", name1Value);
        objMap.put("name1", map);
        // 开始时间
        map = new HashMap<>(1);
        map.put("value", time12Value);
        objMap.put("time12", map);
        // 截止日期
        map = new HashMap<>(1);
        map.put("value", time13Value);
        objMap.put("time13", map);
        // 申请类型
        map = new HashMap<>(1);
        map.put("value", thing2Value);
        objMap.put("thing2", map);
        // 备注
        map = new HashMap<>(1);
        map.put("value", thing3Value);
        objMap.put("thing3", map);

        return objMap;
    }

}


